package com.yuji.aacar.controller.cartype.bean;


import com.yuji.aacar.widgets.indexview.bean.BaseIndexPinyinBean;

/**
 * Created by zhangxutong .
 * Date: 16/08/28
 */

public class CarBean extends BaseIndexPinyinBean {

    private String carName;//城市名字
    private String carUrl;
    private String brandId;

    private boolean isTop;//是否是最上面的 不需要被转化成拼音的

    public CarBean() {
    }

    public CarBean(String carName) {
        this.carName = carName;
    }

    public String getCity() {
        return carName;
    }

    public CarBean setCity(String carName) {
        this.carName = carName;
        return this;
    }

    public String getCarUrl() {
        return carUrl;
    }

    public void setCarUrl(String carUrl) {
        this.carUrl = carUrl;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public boolean isTop() {
        return isTop;
    }

    public CarBean setTop(boolean top) {
        isTop = top;
        return this;
    }

    @Override
    public String getTarget() {
        return carName;
    }

    @Override
    public boolean isNeedToPinyin() {
        return !isTop;
    }


    @Override
    public boolean isShowSuspension() {
        return !isTop;
    }
}
